package com.jugheadzhou.emrpoc.model;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.sql.*;

import com.jugheadzhou.emrpoc.mybatis.UUIdGenId;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * 
 * @author jugheadzhou
 * @date 2021-10-24 21:52:36
 */ 
@Data
public class MedicalRecordTemplate implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@KeySql(genId = UUIdGenId.class)
	private String id;
	/** 病历记录类型 */
	private String type;
	/** 病历记录版本 */
	private Integer version;
	/** 模板的对应的文件资源 */
	private String resource;
	/** 资源片段名称 */
	@Column(name = "fragmentName")
	private String fragmentName;
	/** 模板的标题 */
	private String title;
	/** 模板的描述 */
	private String description;
	/** 模板内容定义 */
	private String content;
	/** 模板是否发布使用 */
	private Integer published = 0;
	/** 创建人 */
	@Column(name = "createdBy")
	private String createdBy;
	/** 创建时间 */
	@Column(name = "createTime")
	private LocalDateTime createTime;
	/** 更新人 */
	@Column(name = "changedBy")
	private String changedBy;
	/** 更新时间 */
	@Column(name = "changeTime")
	private LocalDateTime changeTime;

}

